﻿@model TenderSampleApp.Models.Profile.JuridicalUserProfileModel

@{
    ViewBag.Title = "FillConfirmedJuridicalUserProfile";
    Layout = "~/Views/Shared/_Layout.cshtml";
       <script src="/Scripts/FullAddressDatePicker.js" type="text/javascript"></script>
 
    }
<h2>Заповніть профайл</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
 <span id= "confirmprofilemsg">Для мінімізації помилок необхідно повторити введення даних в профайл користувача</span>
@using (Html.BeginForm())
{
        @Html.Hidden("hdnreg")
    @Html.Hidden("hdndist")
    @Html.Hidden("hdncity")
     @Html.Hidden("hdnvalid", Session["userprofile"] == null ? false : true)
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Профайл</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Code)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Code)
            @Html.ValidationMessageFor(model => model.Code)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Index)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Index)
            @Html.ValidationMessageFor(model => model.Index)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Region)
        </div>
       <div class="editor-field">
            @Html.TextBoxFor(model => model.Region, new { @class = "region" })
            @Html.ValidationMessageFor(model => model.Region)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.District)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.District, new { @class = "district" })
            @Html.ValidationMessageFor(model => model.District)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.City, new { @class = "city" })
            @Html.ValidationMessageFor(model => model.City)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Street)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Street, new { @class = "street" })
            @Html.ValidationMessageFor(model => model.Street)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Build)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Build)
            @Html.ValidationMessageFor(model => model.Build)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Apartment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Apartment)
            @Html.ValidationMessageFor(model => model.Apartment)
        </div>

        <p>
            <input type="submit" value="Створити профайл" />
        </p>
          </fieldset>
}